AMD Kaveri: gbm_bo_get_stride returns wrong values for cursor buffers
https://bugs.freedesktop.org/show_bug.cgi?id=89164
Bug ID: 89164
Summary: AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Product: Mesa
Version: 10.4
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
When creating a cursor with GBM_BO_USE_CURSOR{_64x64} and a dimension of 64 by 64 pixel the operation succeeds and the returned stride size is always 256. When drawing the cursor buffer and displaying on screen graphical artifacts appear. Instead of 128 bytes a stride size of 512 seems to be correct on Kaveri systems.
For this particular scenario there is a workaround: query 'an arbitrary but valid cursor buffer size' with DRM_CAP_CURSOR_WIDTH DRM_CAP_CURSOR_HEIGHT.
Still gbm_bo_get_stride should not return a wrong stride size.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=89164
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTABUG--- Comment #1 from Michel Dänzer <[email protected]> ---
You need to pass the dimensions queried from DRM_CAP_CURSOR_WIDTH and DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hardware only supports 256x256 hardware cursors.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=89164
--- Comment #2 from Andreas Pokorny <[email protected]> --- (In reply to Michel Dänzer from comment #1)
Quoted 3 lines
You need to pass the dimensions queried from
DRM_CAP_CURSOR_WIDTHandDRM_CAP_CURSOR_HEIGHTinstead of hardcoding 64. As of CIK, Radeon hardware only supports 256x256 hardware cursors.
Yes, but since buffer creation with a smaller size does not fail, gbm_bo_get_stride should return the right size.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=89164
--- Comment #3 from Michel Dänzer <[email protected]> --- (In reply to Andreas Pokorny from comment #2)
Quoted 2 lines
Yes, but since buffer creation with a smaller size does not fail,
gbm_bo_get_strideshould return the right size.
It returns the stride of the allocated buffer. The problem is that the buffer size doesn't match the hardware cursor size in the first place. Returning a different stride can't change that.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel